
<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('proveedores/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
    <tr>
       <td align="center">
            
            
        
 <table class="tableTituloForm" style="" border="0" cellpadding="0" cellspacing="0" >
    <tr>
        
        <td class="columnaTituloForm" align="left">Proveedor datos generales</td>
        <td style="background: #488eb8" align="right" colspan="2">
            <input type="submit" value="Guardar" id="submitId" class="button-done submitId" style="float: right;">
            <?php if (!$form->getObject()->isNew()): ?>
            <?php echo link_to('Delete', 'proveedores/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'style' => 'float: right; background: #d05848; border: #d05848;','class' => 'button-done submitId','confirm' => 'Are you sure?')) ?>
            <?php endif; ?>
            
            <a class="button-done submitId" style="float: right;" href="<?php echo url_for('proveedores/index') ?>">Back to list</a>
            
        </td>
        
        
    </tr>
       <tr>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['pais_id']->renderError()) echo "Error"; ?>">
                Pais  <?php echo $form['pais_id'] ?>
                
            </font>
        </td>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['entidad_id']->renderError()) echo "Error"; ?>">
                Entidad  <?php echo $form['entidad_id'] ?>
            </font>
        </td>
        <td class="columnaFilaForm" align="left" colspan="2">
            <font class="camposIngreso<?php if($form['municipio_id']->renderError()) echo "Error"; ?>">
                Municipio  <?php echo $form['municipio_id'] ?>
                
            </font>
        </td>
        
       </tr>
       <tr>
           <td class="columnaFilaForm" align="left" colspan="3">
            <font class="camposIngreso<?php if($form['parroquia_id']->renderError()) echo "Error"; ?>">
                Colonia  <?php echo $form['parroquia_id'] ?>    
                </font>
        </td>
        </tr>
    <tr>
         <td class="columnaFilaForm" align="left">
            
            <font class="camposIngreso">
                RFC
                <?php echo $form['rif'];  ?>
                
            </font>
        </td>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['nombre_proveedor']->renderError()) echo "Error"; ?>">
                Razon social <?php echo $form['nombre_proveedor'] ?>
            </font>
        </td>
       
       <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['email']->renderError()) echo "Error"; ?>">
                Correo principal <?php echo $form['email'] ?>
            </font>
        </td>
        
    </tr>
     <tr>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['telefono1']->renderError()) echo "Error"; ?>">
                Telefono principal <?php echo $form['telefono1'] ?>
            </font>
        </td>
        <td class="columnaFilaForm" align="left" colspan="2">
            <font class="camposIngreso<?php if($form['telefono2']->renderError()) echo "Error"; ?>">
                Telefono Adicional <?php echo $form['telefono2'] ?>
            </font>
        </td>
       
        
    </tr>
    <tr>
        <td class="columnaFilaForm" align="left">
            <font class="camposIngreso<?php if($form['contacto_nombre']->renderError()) echo "Error"; ?>">
                Contacto Nombre <?php echo $form['contacto_nombre'] ?>
            </font>
        </td>
        <td class="columnaFilaForm" align="left" colspan="2">
            <font class="camposIngreso<?php if($form['contacto_telefono']->renderError()) echo "Error"; ?>">
                Contacto Telefono  <?php echo $form['contacto_telefono'] ?>
            </font>
        </td>
       
        
    </tr>
    
     <tr>
        <td class="columnaFilaForm" align="left" valign="top" colspan="3">
            <div  class="camposIngreso">
                Direccion Fiscal
                <div class="clear" style="margin-bottom: 10px;"></div>
                <?php echo $form['direccion_fiscal'] ?>
                
            </div>
        </td>
    </tr>
     <tr>
        <td class="columnaFilaForm" align="left" valign="top" colspan="3">
            <div  class="camposIngreso">
                Direccion Fisica
                <div class="clear" style="margin-bottom: 10px;"></div>
                <?php echo $form['direccion_fisica'] ?>
                
            </div>
        </td>
    </tr>
    
  
      <tr>
        <td colspan="2">
          <?php echo $form->renderGlobalErrors() ?>
          <?php echo $form->renderHiddenFields(false) ?>
          
          
        </td>
      </tr>
      
  </table>
            
            </td>
    </tr>
</table>


</form>

